package cn.jzq.kotoba.modules.rabbitmq.service.impl;

import cn.jzq.kotoba.common.consts.MqQueueConst;
import cn.jzq.kotoba.modules.rabbitmq.service.LogSendService;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author jzq
 * @date 2018-09-10
 */
@Service
public class LogSendServiceImpl implements LogSendService {
    @Autowired
    private AmqpTemplate rabbitTemplate;

    @Override
    public void send(String msg) {
        rabbitTemplate.convertAndSend(MqQueueConst.LOG_QUEUE, msg);
    }
}
